<?php 
include('../V_Abrir_Sesion.php');
?>
<?php 
//include  "./../protected.php"; /*Valida el inico de sesion*/
error_reporting(0);
?>
<!DOCTYPE html>
<head>
	<title>Formulario | SIPREST</title>
 <link type="image/x-icon" href="../imagenes/pe.icon" rel="shortcut icon" /> 
	 <link type="image/x-icon" href="../../imagenes/pe.icon" rel="icon" />
<link href="ceGrid.css" rel="stylesheet" type="text/css">
<link href="main.css" rel="stylesheet" type="text/css">
<meta charset="UTF-8">
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
 <meta name="description" content="Sidebar Transitions: Transition effects for off-canvas views" />
		<meta name="keywords" content="transition, off-canvas, navigation, effect, 3d, css3, smooth" />
		<meta name="author" content="Codrops" />
		<link rel="shortcut icon" href="../favicon.ico">
		<link rel="stylesheet" type="text/css" href="../css/normalize.css" />
		<link rel="stylesheet" type="text/css" href="../css/demo.css" />
		<link rel="stylesheet" type="text/css" href="../css/icons.css" />
		<link rel="stylesheet" type="text/css" href="../css/component.css" />


		 <link href="../css/bootstrap.min.css" rel="stylesheet" media="screen">
    <script type="text/javascript" src="../js/bootstrap-tab.js"></script>
    <script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tab.js"></script>

 <script src="http://code.jquery.com/jquery.js"></script>
        <script src="../js/bootstrap.min.js"></script>
        <script src="../js/prototype.js "type="text/javascript"></script> 
		<script src="../js/modernizr.custom.js"></script>
		<style type="text/css">
		#st-trigger-effects{

			width:250px;
			margin-top:-45px;

		}

		#contenedorF{
			width:900px; height:450px;
			 background-color:white; 
			 /*margin-left:400px;*/ 
			 margin-top:125px; 
			 box-shadow: 8px 5px 20px #000;
			-moz-box-shadow: -8px 20px -5px #000;
			-webkit-box-shadow: -8px 20px -5px #000;
			border-radius: 20px;
		}
				#img{
			width: 210px;
			margin-left: 50px;
			margin-top: 50px;
		}

		#BtnAgPag1{
			margin-top: 290px;
		}
		</style>
</head>

<body>
	<div id="st-container" class="st-container">
			
			<nav class="st-menu st-effect-11" id="menu-11">
			<img id="img" src="../../Logotipo/SIPRESTV1_TRANS.png">
				<ul>
					<li><a class="icon icon-data" href="#">Formulario</a></li>
					<li><a class="icon icon-location" href="index.php">Especialidad</a></li>
					<li><a class="icon icon-study" href="../Usuarios">Usuarios</a></li>
					<li><a class="icon icon-photo" href="../Administradores">Administradores</a></li>
					<li><a class="icon icon-wallet" href="#">Credits</a></li>
				</ul>
			</nav>
		
<div class="st-pusher" >
<div class="st-content" ><!-- this is the wrapper for the content -->
<div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
						<!-- Top Navigation -->
				<div class="codrops-top clearfix" >
							<span class="right"><a style="color:#388A5A;" class="glyphicon glyphicon-off" href="../V_Cerrar_Sesion.php" ><h6>Cerrar Sesión</h6></a></span>
							<br><br>
						</div>
						
			<center>
			<div id="st-trigger-effects">
			<button data-effect="st-effect-11">Ver Menú Principal</button>
			</div>
			</center>	

			<center>
			<div id="contenedorF" >

<div>
<br>
<h3 align="center">Lista De Estudiantes</h3><br/>

<?php
/*
$host = "74.220.207.160";
$usuario = "repuest3_genesys";
$clave = "1q2w3e4r5t6y";*/

$host = "localhost";
$usuario ="root";
$clave = "root";
//error_reporting(0);
require 'dg/ceSQL.php';
require 'dg/ceGrid.php';

$dbase = new ceMySQLAdap($host,$usuario,$clave,"siprest");

$dg = new ceDataGrid($dbase); 

$dg->setQuery("IDES,NombreCompleto,TEES,NOES","v_Est");

$dg->allowFilters();

$dg->showCreateButton("href='FormularioPag1Est.php'", ceDataGrid::TYPE_ONCLICK, 'Agregar');
$dg->setResultsPerPage(10);

$dg->setColumnHeader('IDES', 'Cédula');
$dg->setColumnHeader('NombreCompleto', 'Nombre Completo');
$dg->setColumnHeader('TEES', 'Teléfono');
$dg->setColumnHeader('NOES', 'Especialidad');

$dg->addStandardControl(ceDataGrid::STDCTRL_VERINFO, "href='../Becas/index.php?CedEst=%IDES%'");
$dg->addStandardControl(ceDataGrid::STDCTRL_EDIT, "href='FormularioPag1EstModificar.php?id=%IDES%'");
$dg->addStandardControl(ceDataGrid::STDCTRL_DELETE, "href='FormularioPag1EstEliminar.php?id=%IDES%'");
$dg->addStandardControl(ceDataGrid::STDCTRL_GF, "href='../GrupoFamiliar/index.php?CedEst=%IDES%'");
$dg->addStandardControl(ceDataGrid::STDCTRL_REPORTE, "href='../Reporte/ReporteFormulario1.php?id=%IDES%'");

$dg->showReset("Refrescar");
$dg->printTable();
?>

</div>
			</div>
		 	</center>

</div><!-- /st-content-inner -->
</div><!-- /st-content -->
</div><!-- /st-pusher -->
</div><!-- /st-container -->
		
	<script src="../js/classie.js"></script>
	<script src="../js/sidebarEffects.js"></script>
</body>
</html>